<template>
  <div>
    <input type="text" class="search"/>
    <input type="button" value="搜索" class="search-btn" />
    <hr />
    <el-carousel indicator-position="outside">
      <el-carousel-item v-for="item in 4" :key="item">
        <h3>{{ item }}</h3>
      </el-carousel-item>
    </el-carousel>
    <hr>
    <div id="box">
        <div>
          <img src="../../../public/img/白玫瑰.jpg" alt="">
          <p>商品描述:纯白的玫瑰</p>
          <span>价格</span><span>$66.00</span>
          <input type="button" value='加入购物车'>
          <input type="button"  value="收藏">
        </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style>
.search{
    width: 300px;
    height: 25px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding-left: 5px;
}
.search-btn{
    width: 40px;
    height: 28px;
}
#box{
  width: 80%;
  margin: auto;
  border: 1px solid red;
}
#box div{
   width: 360px;
   height: 400px;
   border: 1px solid black;
   text-align: center;
}
#box div img{
  width: 96%;
 
}
#box div p,span{
  margin-top: -80px;
  margin-bottom: -100px;
}
.el-carousel{
 width: 60%;
 margin: auto;
 margin-top: 10px;
}
  .el-carousel__item h3 {
    color: #475669;
    font-size: 18px;
    opacity: 0.75;
    line-height: 300px;
    margin: 0;
  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }
  
  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>